package com.ag.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * TbInforType entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_INFOR_TYPE", schema = "dbo", catalog = "AGDB")
public class TbInforType implements java.io.Serializable {

	// Fields

	private String itId;
	private String itType;
	private String a;
	private String b;
	private String c;
	private Set<TbInformation> tbInformations = new HashSet<TbInformation>(0);

	// Constructors

	/** default constructor */
	public TbInforType() {
	}

	/** minimal constructor */
	public TbInforType(String itId, String itType) {
		this.itId = itId;
		this.itType = itType;
	}

	/** full constructor */
	public TbInforType(String itId, String itType, String a, String b,
			String c, Set<TbInformation> tbInformations) {
		this.itId = itId;
		this.itType = itType;
		this.a = a;
		this.b = b;
		this.c = c;
		this.tbInformations = tbInformations;
	}

	// Property accessors
	@Id
	@Column(name = "IT_ID", unique = true, nullable = false, length = 2)
	public String getItId() {
		return this.itId;
	}

	public void setItId(String itId) {
		this.itId = itId;
	}

	@Column(name = "IT_TYPE", nullable = false, length = 20)
	public String getItType() {
		return this.itType;
	}

	public void setItType(String itType) {
		this.itType = itType;
	}

	@Column(name = "A", length = 20)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 20)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 20)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tbInforType")
	public Set<TbInformation> getTbInformations() {
		return this.tbInformations;
	}

	public void setTbInformations(Set<TbInformation> tbInformations) {
		this.tbInformations = tbInformations;
	}

}